package com.dy.lock.screen.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dy.lock.screen.dao.MaterialDao;
import com.dy.lock.screen.pojo.MaterialInfo;
import com.dy.lock.screen.scoket.Head;
import com.dy.lock.screen.service.MaterialService;

@Service("materialService")
public class MaterialServiceImpl implements MaterialService {

	@Resource(name = "materialDao")
	private MaterialDao materialDao;

	@Override
	public List<MaterialInfo> queryPage(Map<String, Object> para, Head head) {
		List<MaterialInfo> list = this.materialDao.queryT(para);
		return list;
	}

	@Override
	public MaterialInfo queryByPrimaryKey(String mid) {
		return this.materialDao.queryByPrimaryKey(mid);

	}

}
